//
//  ZBNotificationBar.h
//  ZBNotificationBar
//
//  Created by xzb on 2018/7/21.
//

#import <UIKit/UIKit.h>

@interface ZBNotificationBar : UIView


+ (instancetype)notificationBar;
/**
 * 将notificationBar添加到某个视图上
 *
 * @param view default value is keyWindow;
 * @param subView
 */
+ (instancetype)notificationBarAddedTo:(UIView *)view subView:(UIView *)subView;

- (void)makeLayout;
- (void)makeLayoutWithInsets:(UIEdgeInsets)insets height:(CGFloat)height;

- (void)show:(BOOL)animated;
- (void)show:(BOOL)animated hideAfterDelay:(NSTimeInterval)delay;

- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay;



@end
